[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Pre-defined constant flags for DISPTEXT

 Functions
  If the flags are set/used they mean the following:

   BELL       Sound a bell when prompt displayed
   LFAFTER    Send an extra line feed after user presses enter
   LFBEFORE   Send an extra line feed before prompt display
   LOGIT      Log text to callers log
   LOGITLEFT  Log text to callers log, forcing left justification
   NEWLINE    Send a line feed after user presses enter

 Values
  BELL      = 2048  = 100000000000b      = 4000o   = 800h
  LFAFTER   = 256   = 100000000b         = 400o    = 100h
  LFBEFORE  = 128   = 10000000b          = 200o    = 80h
  LOGIT     = 32768 = 1000000000000000b  = 100000o = 8000h
  LOGITLEFT = 65536 = 10000000000000000b = 200000o = 10000h
  NEWLINE   = 64    = 1000000b           = 100o    = 40h

 Remarks
  BELL       This is useful when you want to get the users attention
             when displaying information.  It sends a ^G (ASCII 7)
             character to the remote caller and sounds the alarm on
             the local computer running PCBoard (unless the alarm has
             been toggled off).  It is the responsibility of the users
             terminal software to support the ^G.

  NEWLINE    Sends a carriage return/line feed after a prompt is displayed
             automatically and without the need to make a separate call to
             the NEWLINE statement.

  LFAFTER    Sends an extra carriage return/line feed after a prompt is
             displayed automatically and without the need to make a
             separate call to the NEWLINE statement.

  LFBEFORE   Sends a carriage return/line feed before a prompt is displayed
             automatically and without the need to make a separate call to
             the NEWLINE statement.

  LOGIT      Writes the specified prompt to the callers log automatically
             without the need to use the LOG statement.  This flag will
             indent the prompt six spaces in the callers log.

  LOGITLEFT  Writes the specified prompt to the callers log automatically
             without the need to use the LOG statement.  This flag will
             not indent the prompt in the callers log.

 Examples

  BELL:
  ' Get the users attention and display the closed board prompt
  DISPTEXT 11,BELL+LFAFTER+LFBEFORE

  LFAFTER:
  STRING pwd
  INPUTSTR "Enter id",pwd,@X0E,4,"0123456789",LFBEFORE+NEWLINE+LFAFTER
  IF (pwd <> "1234") PRINTLN "Bad id number"

  LFBEFORE:
  STRING pwd
  INPUTSTR "Enter id",pwd,@X0E,4,"0123456789",LFBEFORE+NEWLINE+LFAFTER
  IF (pwd <> "1234") PRINTLN "Bad id"

  LOGIT:
  DISPTEXT 4,LFBEFORE+LFAFTER+BELL+LOGIT

  LOGITLEFT:
  DISPTEXT 4,LFBEFORE+LFAFTER+BELL+LOGITLEFT

  NEWLINE:
  STRING pwd
  INPUTSTR "Enter id",pwd,@X0E,4,"0123456789",LFBEFORE+NEWLINE+LFAFTER
  IF (pwd <> "1234") PRINTLN "Bad id"

See Also: DISPTEXT
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson